package com.cowain.monitor.dao;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.cowain.monitor.entity.PmsSupplierEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 *  
 *  * @author 冬暖
 *  * @projectName pms-monitor
 *  * @title     PmsSupplierDao   
 *  * @package    com.cowain.monitor.dao  
 *  * @description    PMS供应商信息       
 *  * @date   2020/7/28 18:10  
 *  * @version V1.0.0
 *  
 */
@Mapper
public interface PmsSupplierDao extends BaseMapper<PmsSupplierEntity> {
    /**
     * 查询供应商编号
     * @param supplierNumber 供应商编号
     * @return id
     */
    Long findSupplier(@Param("supplierNumber") Long supplierNumber);

    /**
     * 批量添加
     * @param infoList 供应商信息
     */
    void insertList(List<PmsSupplierEntity> infoList);

    /**
     * 批量修改
     * @param infoEntityList 供应商信息
     */
    void updateInfoList(List<PmsSupplierEntity> infoEntityList);
    /**
     * 获取供应商id
     * @param suppId 供应商id
     * @param suppAddress 供应商地址
     * @return 供应商id
     */
    Long findErpSupplier(@Param("suppId") Long suppId, @Param("suppAddress") String suppAddress);
}
